<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Inventariado</title>
	<link href='<c:url value="/resources/css/cupertino/jquery-ui-1.10.0.custom.css" />' rel="stylesheet" />
	<script type="text/javascript" src='<c:url value="/resources/js/jquery-1.9.0.js" />'></script>
    <script type="text/javascript" src='<c:url value="/resources/js/jquery-ui-1.10.0.custom.js" />'></script>
    <link href='<c:url value="/resources/jtable/metro/blue/jtable.css"/>' rel="stylesheet"  />
    <script type="text/javascript" src='<c:url value="/resources/jtable/jquery.jtable.js" />'></script>
   
   	<script language="javascript" type="text/javascript">
   	$(document).ready(function() {
		 //Prepare jTable
		 alert("hello js");
		 $('#PersonTableContainer').jtable({
				title: 'Tabla de los Programadores',
				actions: {
					listAction:'GenerarTablaProgramadores?action=list',
					createAction:'CrearProgramador?action=create',
		            updateAction: 'ActualizarProgramador?action=update',
		            deleteAction: 'DeleteProgramador?action=delete'
					
				},
				fields: {
					id: {
						title:'id Programador',
						key: true,
						create: false,
						edit: false,
						list: true
					},
					nombre: {
						title: 'Programador',
						width: '40%',
						edit: true
					}
				}
			});
			$('#PersonTableContainer').jtable('load');
		
	});
</script>
</head>
<body>
<h1>Billar-Inventario</h1>
<%-- <c:forEach items="${inventario}" var="c" >
		<c:out value="${c.}" />
	</c:forEach> --%>
	<br>
	<div id="PersonTableContainer" style="width: 600px;"></div>
</body>
</html>